import request from '@/utils/request'

/* 列表分页*/
export function selectAnnouncePage(data) {
  return request({
    url: '/system/announce/selectAnnouncePage',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function saveAnnounce(data) {
  return request({
    url: '/system/announce/saveAnnounce',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function updateAnnounceById(data) {
  return request({
    url: '/system/announce/updateAnnounceById',
    method: 'post',
    data: data
  })
}

/* 根据id查询*/
export function selectAnnounceById(data) {
  return request({
    url: '/system/announce/selectAnnounceById/' + data,
    method: 'post'
  })
}

/* 删除*/
export function deleteAnnounce(data) {
  return request({
    url: '/system/announce/deleteAnnounce',
    method: 'post',
    data: data
  })
}

/* 发送 */
export function sendAnnounce(data) {
  return request({
    url: '/system/announce/sendAnnounce/' + data,
    method: 'post'
  })
}
